package com.ruoyi.sessions.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会话-歌曲对象 session_tracks
 * 
 * @author lin
 * @date 2025-03-04
 */
public class SessionTracks extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long sessionId;

    /** 歌曲ID */
    private Long trackId;

    /** 开始时间 */
    @Excel(name = "开始时间")
    private Long playstart;

    /** 播放时长 */
    @Excel(name = "播放时长")
    private Long playtime;

    /** 播放比率 */
    @Excel(name = "播放比率")
    private Long playratio;

    /** 行为 */
    @Excel(name = "行为")
    private String action;

    public void setSessionId(Long sessionId) 
    {
        this.sessionId = sessionId;
    }

    public Long getSessionId() 
    {
        return sessionId;
    }
    public void setTrackId(Long trackId) 
    {
        this.trackId = trackId;
    }

    public Long getTrackId() 
    {
        return trackId;
    }
    public void setPlaystart(Long playstart) 
    {
        this.playstart = playstart;
    }

    public Long getPlaystart() 
    {
        return playstart;
    }
    public void setPlaytime(Long playtime) 
    {
        this.playtime = playtime;
    }

    public Long getPlaytime() 
    {
        return playtime;
    }
    public void setPlayratio(Long playratio) 
    {
        this.playratio = playratio;
    }

    public Long getPlayratio() 
    {
        return playratio;
    }
    public void setAction(String action) 
    {
        this.action = action;
    }

    public String getAction() 
    {
        return action;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("sessionId", getSessionId())
            .append("trackId", getTrackId())
            .append("playstart", getPlaystart())
            .append("playtime", getPlaytime())
            .append("playratio", getPlayratio())
            .append("action", getAction())
            .toString();
    }
}
